package com.chengh.nami.common.domain.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.chengh.nami.common.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDateTime;

/**
 * @author chengh
 * 用户基类
 */
@Getter
@Setter
@ToString(callSuper = true)
@TableName("sys_user")
@Schema(name = "SysUser对象", description = "用户表")
public class SysUser extends BaseEntity {

    @Schema(name = "id", description = "用户ID")
    private Long id;

    @Schema(name = "deptId", description = "部门ID")
    private Long deptId;

    @Schema(name = "username", description = "用户名称")
    private String username;

    @Schema(name = "password", description = "密码")
    private String password;

    @Schema(name = "nickName", description = "用户昵称")
    private String nickName;

    @Schema(name = "email", description = "邮箱")
    private String email;

    @Schema(name = "phoneNumber", description = "联系方式")
    private String phoneNumber;

    @Schema(name = "sex", description = "性别")
    private String sex;

    @Schema(name = "avatar", description = "图像地址")
    private String avatar;

    @Schema(name = "status", description = "用户状态")
    private String status;

    @Schema(name = "loginIp", description = "登录IP")
    private String loginIp;

    @Schema(name = "loginDate", description = "登录时间")
    private LocalDateTime loginDate;
}
